package cn.kgc.springboot06.controller;

import cn.kgc.springboot06.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author: mosin
 * @version: v1.0  2022/5/24
 */
@Controller
@RequestMapping("p")
public class ProductController {

    @Autowired
    private ProductService productService;
    @RequestMapping("all")
    @ResponseBody
    public  Object getAll(){
        return productService.getAll();
    }

}
